package org.jeecg.modules.dmyweb.home.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.dmyweb.base.mapper.IBaseMapper;
import org.jeecg.modules.dmyweb.home.mapper.IHomeMapper;
import org.jeecg.modules.dmyweb.home.service.IHomeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class HomeServiceImpl extends ServiceImpl<IBaseMapper, Map<String,Object>> implements IHomeService {
    @Resource
    private IHomeMapper homeMapper;
    @Override
    public Map<String, Object> getDataFormat(String storeId,String formatToDay, String formatMonth) {
        return homeMapper.getDataFormat(storeId,formatToDay,formatMonth);
    }

    @Override
    public List<Map<String, Object>> getOrderQtyLine(String stockName, String staffName, String beginTime, String endTime, String productName, String patternPayment, String orderStatus, String storeId) {
        return homeMapper.getOrderQtyLine(stockName,staffName,beginTime,endTime,productName,patternPayment,orderStatus,storeId);
    }
}
